home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / a-calcon.ads < prev    next >
Text File  |  1996-01-30  |  2KB  |  42 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                 GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS               --
  4. --                                                                          --
  5. --                     A D A . C A L E N D A R . C O N V                    --
  6. --                                                                          --
  7. --                                  S p e c                                 --
  8. --                                                                          --
  9. --                             $Revision: 1.6 $                            --
  10. --                                                                          --
  11. --       Copyright (c) 1991,1992,1993,1994, FSU, All Rights Reserved        --
  12. --                                                                          --
  13. -- GNARL is free software; you can redistribute it  and/or modify it  under --
  14. -- terms  of  the  GNU  Library General Public License  as published by the --
  15. -- Free Software  Foundation;  either version 2, or (at  your  option)  any --
  16. -- later  version.  GNARL is distributed  in the hope that  it will be use- --
  17. -- ful, but but WITHOUT ANY WARRANTY;  without even the implied warranty of --
  18. -- MERCHANTABILITY  or  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Gen- --
  19. -- eral Library Public License  for more details.  You should have received --
  20. -- a  copy of the GNU Library General Public License along with GNARL;  see --
  21. -- file COPYING.LIB.  If not,  write to the  Free Software Foundation,  675 --
  22. -- Mass Ave, Cambridge, MA 02139, USA.                                      --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26. --  Provides conversion between calendar.time and Task_Clock.Stimespec
  27.  
  28. with System.Task_Clock;
  29. --  Used for, type Stimespec
  30.  
  31. package Ada.Calendar.Conv is
  32.  
  33.    function Time_To_Stimespec
  34.      (T    : Ada.Calendar.Time)
  35.       return System.Task_Clock.Stimespec;
  36.  
  37.    function Stimespec_To_Time
  38.      (T    : System.Task_Clock.Stimespec)
  39.       return Ada.Calendar.Time;
  40.  
  41. end Ada.Calendar.Conv;
  42.